package com.example.smsquiz;

import android.app.Activity;
import android.os.Bundle;
import android.widget.RadioButton;
import android.widget.RadioGroup;

import java.util.Vector;

/**
 * Created by Dmitry Kuyanov
 * Date: 05.03.13
 * Time: 1:12
 */
public class UrlListActivity extends Activity {

    RadioGroup radioUrlList;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_url_list);
        radioUrlList = (RadioGroup) findViewById(R.id.radioUrlList);
        Vector<String> urls = AppModel.getInstance().getUrls();
        for (String url : urls){
            RadioButton radioButton = new RadioButton(getBaseContext());
            radioButton.setText(url);
            radioUrlList.addView(radioButton);
        }
    }
}